Project 2: OpenAI-API Project Overview
Overview
The OpenAI-API project integrates two main functionalities through a FastAPI web application:
- Meal Plan Generation:
- Endpoint:
/meals_plan
- Generates meal plans based on user-specified ingredients and caloric preferences.
- Endpoint:
- Image Generation for Meals:
- Endpoint:
/generate_images
- Creates images for meals using OpenAI's DALL-E API and packages them into a downloadable zip file.
- Endpoint:
- YouTube Audio Summarizer:
- Downloads audio from YouTube videos and generates summaries using OpenAI's APIs.
To get started, clone the repository and set up the environment:
- Clone the Repository:
git clone https://github.com/Ammar-Abdelhady-ai/Openai-api.git cd Openai-api
- Environment Setup:
- Install required dependencies.
- Run the FastAPI App:
- Start the FastAPI application.
Scripts Overview:
- Meals Plan:
- Generates meal plans based on user inputs.
- YouTube Audio Summary:
- Generates summaries from YouTube audio.
API Endpoint and Dependencies:
- API Endpoint:
- Endpoints for meal plan and image generation.
- Dependencies:
- generating meal plans and creating summaries for transcribed audio from YouTube videos. The integration of OpenAI's powerful APIs makes these tasks seamless and accessible through a FastAPI web application.

This Project’s GitHub Repository